package book;

public class BookLise {

    private Book[] books = new Book[10];
    private int nowSize;

    public BookLise() {
        this.books[0] =  new Book("三国演义","罗贯中","小说",15);
        this.books[1] =  new Book("西游记","吴承恩","小说",15);
        this.books[2] =  new Book("红楼梦","曹雪芹","小说",15);
        this.nowSize = 3;
    }

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(Book book,int pos) {
        this.books[pos] = book;
    }

    public int getNowSize() {
        return nowSize;
    }

    public void setNowSize(int nowSize) {
        this.nowSize = nowSize;
    }

}
